import request from '@/utils/request'

let reuserApi = {
  /*列表*/
  lists(data, errorback) {
    return request._post('/admin/repertory.user/index', data, errorback);
  },
  /*添加*/
  adds(data, errorback) {
    return request._post('/admin/repertory.user/add', data, errorback);
  },
  /*修改*/
  edits(data, errorback) {
    return request._post('/admin/repertory.user/edit', data, errorback);
  },
  /*删除*/
  deletes(data, errorback) {
    return request._post('/admin/repertory.user/delete', data, errorback);
  },
  /*用户登录*/
  login(data, errorback) {
    return request._post('/admin/passport/logins', data, errorback);
  },
}

export default reuserApi;
